home *** CD-ROM | disk | FTP | other *** search
/ User's Choice Windows CD / User's Choice Windows CD (CMS Software)(1993).iso / utility1 / gs261src.zip / SCANCHAR.H < prev    next >
C/C++ Source or Header  |  1993-05-13  |  2KB  |  45 lines

  1. /* Copyright (C) 1990, 1991 Aladdin Enterprises.  All rights reserved.
  2.  
  3. This file is part of Ghostscript.
  4.  
  5. Ghostscript is distributed in the hope that it will be useful, but
  6. WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  7. to anyone for the consequences of using it or for whether it serves any
  8. particular purpose or works at all, unless he says so in writing.  Refer
  9. to the Ghostscript General Public License for full details.
  10.  
  11. Everyone is granted permission to copy, modify and redistribute
  12. Ghostscript, but only under the conditions described in the Ghostscript
  13. General Public License.  A copy of this license is supposed to have been
  14. given to you along with Ghostscript so you can know your rights and
  15. responsibilities.  It should be in a file named COPYING.  Among other
  16. things, the copyright notice and this notice must be preserved on all
  17. copies.  */
  18.  
  19. /* scanchar.h */
  20. /* Character scanning table for Ghostscript */
  21.  
  22. /* An array for fast scanning of names, numbers, and hex strings. */
  23. /*  Indexed by character code (including EOFC and ERRC), it contains: */
  24. /*    0 - max_radix-1 for valid digits, */
  25. /*    ctype_name for other characters valid in names, */
  26. /*    ctype_btoken for characters introducing binary tokens */
  27. /*      (if the binary token feature is enabled), */
  28. /*    ctype_space for whitespace characters, */
  29. /*    ctype_eof for end-of-file, and */
  30. /*    ctype_other for everything else. */
  31. /* This table is initialized in iscan.c, used in iscan.c and stream.c. */
  32. extern byte scan_char_array[258];
  33. #define scan_char_decoder (&scan_char_array[2])    /* account for EOFC/ERRC */
  34. #define min_radix 2
  35. #define max_radix 36
  36. #define ctype_name 100
  37. #define ctype_btoken 101
  38. #define ctype_space 102
  39. #define ctype_other 103
  40. #define ctype_eof 104
  41. /* Special characters with no \xxx representation */
  42. #define char_NULL 0
  43. #define char_VT 013            /* ^K, vertical tab */
  44. #define char_DOS_EOF 032        /* ^Z */
  45.